// Graphic_Test.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <windows.h>

#include <cairo/cairo.h>
#include <cairo/cairo-win32.h>
 
int main(int argc, char** argv)
{
	HWND console =  GetConsoleWindow();
	HDC dc = GetDC(console);
	cairo_surface_t	*surface = cairo_win32_surface_create(dc);
	cairo_t				*context = cairo_create(surface);
	cairo_set_source_rgb(context, 1, 0, 0);
	cairo_rectangle(context, 100, 100, 300, 200);
	cairo_stroke(context);
	
	return 0;
}